#include "event.h"

Event::Event()
{
}

Event::Event(Event::peripheral_t p,Event::component_t c,
    Event::action_t a, Uint8 number):
  peripheral(p),component(c),action(a),device_number(number)
{
}

bool Event::operator==(const Event& e)
{
  return peripheral==e.peripheral && component==e.component &&
    action==e.action && device_number==e.device_number;
}

bool Event::operator!=(const Event& e)
{
  return peripheral!=e.peripheral || component!=e.component ||
    action!=e.action || device_number==e.device_number;
}
